package com.shujiaotong.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("classes")
@ApiModel(value="Classes对象", description="")
public class Classes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("teacher_id")
    private Long teacherId;

    @ApiModelProperty(value = "课程名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "老师名字")
    @TableField("tname")
    private String tname;

    @ApiModelProperty(value = "课程类型")
    @TableField("tags")
    private String tags;

    @ApiModelProperty(value = "状态 0 1")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "教室名字")
    @TableField("room_name")
    private String roomName;

    @ApiModelProperty(value = "单次课价格衡量")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "上限人数")
    @TableField("pmax")
    private Integer pmax;

    @ApiModelProperty(value = "已选人数")
    @TableField("pnum")
    private Integer pnum;

    @ApiModelProperty(value = "打开素材选择拼接字段素材a.png,b.png")
    @TableField("imgs")
    private String imgs;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableField("is_deleted")
    private Integer isDeleted;


}
